# def fav(*fru):
#     print("我喜欢的水果有:")
#     for i in fru:
#         print(i)
#
#
#
# fav("苹果")
# fav("苹果", "橘子", "西瓜")
# fav("菠萝", "香蕉", "橘子", "哈密瓜", "草莓", "葡萄")


def show(a, b, *l):
    print(a)
    print(b)
    print(l)




show(1, 2, 4, 5, 6, 7, 9, 56)


def rectangle():
    a=int(input("请输入矩形的长(整数值):"))
    b=int(input("请输入矩形的宽(整数值)"))
    s=a*b
    c=2*(a+b)
    print("该矩形面积为:",s)
    print("该矩形周长为:",c)
rectangle()


def add(a, b):
    c = a + b
    return c, a, b, a*b, a-b


d=add(1, 2)
print(d)


def fun():
    a=20
    return  a


a=10
print(a)
print(fun())


def pro(*a):
    for i in a:
        if i % 2 == 0:
            print("该数据都是偶数:",i)
            if i >10:
                print("该数据大于10")
pro(1, 2, 3, 4, 7, 8, 9, 88, 77)